<?php

/**
 * This is controller
 * @author Oleg Roshnivskyy
 * @package
 */
define('start_time', microtime(true));
define('BASE_PATH', dirname(__DIR__));
if (in_array(@$_SERVER['REMOTE_ADDR'], array(
            '127.0.0.1',
            '::1',
        ))) {
    DEFINE('DEBUG', FALSE);
} else {
    DEFINE('DEBUG', FALSE);
}
require_once __DIR__ . '/../lib/loader.php';
require_once __DIR__ . '/../lib/Router.php';
$urls = array(
    '/' => 'Page\IndexController',
    '/download' => 'Page\DownloadController',
    '/trailer' => 'Page\TrailerController',
    '/actors' => 'Page\ActorsController',
    '/gallery' => 'Page\GalleryController',
    '/content' => 'Page\ContentController',
);
try {
    echo Router::stick($urls);
} catch (Exception $e) {
    echo $e->getMessage();
}
 